home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: news.inap.net!news1!ind-001-236-76
- From: dlmiller@iquest.net (Doug Miller)
- Subject: Re:Sorting Character Arrays.
- X-Nntp-Posting-Host: ind-001-236-76.iquest.net
- Message-ID: <DpnFGq.Aq2@iquest.net>
- Sender: news@iquest.net (News Admin)
- Organization: IQuest Network Services
- X-Newsreader: News Xpress Version 1.0 Beta #2.1
- References: <Pine.OSF.3.91.960410170926.24676A-100000@bud.cc.swin.edu.au>
- Date: Wed, 10 Apr 1996 13:46:03 GMT
-
- Vincent Edward Scaturchio <901380@bud.cc.swin.edu.au> wrote:
- >Hi
- >I have three problems in this area, I hope someone is willing to help.
- >Problem 1: Creating random strings of up to 5 letters of alphabet.
- > 2: Placing these strings into an array.
- > 3: Sorting the array (i.e.Quicksort) into alphabetical order.
- >I've tried numerous times and am no closer. I feel competent when it
- >comes to doing the above in numbers but strings??
- >I've been using strcmp and strcpy in the sorting section of my program to
- >compare different strings and swap them but alas to no avail. All I
- >receive is GPE faults from the processor. This is a first time post to
- >this group, any help would be appreciated.
- >
- >Email: Flymo@bud.swin.edu.au
- >
- Sounds suspiciously like an uninitialized pointer. Post code!
-